<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-CN"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>竞拍车辆商户详细</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body>
	<div class="Wrapper">
		<form id="aucSplUsrForm">
			<div class="fieldset1 tabel_col tabel_col_s clearFix noBorder">
				<div class="fieldBox col_50">
					<div class="label">商户编号</div>
					<div class="field">
						<span name="aucSplUsrId" id="aucSplUsrId">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_100">
					<div class="label">商户名称</div>
					<div class="field">
						<span name="splNm" id="splNm">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">登录帐号(手机号)</div>
					<div class="field">
						<span name="usrNm" id="usrNm">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">联系人</div>
					<div class="field">
						<span name="splLnkMan" id="splLnkMan">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">联系方式</div>
					<div class="field">
						<span name="splTel" id="splTel">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">所属区域</div>
					<div class="field">
						<span name="area" id="area">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">银行卡账户名称</div>
					<div class="field">
						<span name="bkAccNm" id="bkAccNm">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">银行卡账户号</div>
					<div class="field">
						<span name="bkAccNo" id="bkAccNo">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">银行卡开户行</div>
					<div class="field">
						<span name="bkNm" id="bkNm">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">银行卡开户行行号</div>
					<div class="field">
						<span name="bkNo" id="bkNo">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_50">
					<div class="label">状态</div>
					<div class="field">
						<span name="isValidNm" id="isValidNm">&nbsp;</span>
					</div>
				</div>
				<div class="fieldBox col_100">
					<div class="label">备注</div>
					<div class="field" style="width: 100%;">
						<span name="splRem" id="splRem">&nbsp;</span>
					</div>
				</div>

				<!-- hide data -->
				<div class="fieldBox col_100" style="display: none;">
					<div class="field">
						<input name="aid" id="aid" type="text" class="ui-textbox"
							value="${id}">
					</div>
				</div>
			</div>
		</form>
	</div>
	<script type="text/javascript">
	
	$(function() {
		initForm();
	    initData();
	});
		
		//初始化表单
		function initForm(){
			$("#aucSplUsrForm").ligerForm({
                validate: true
           });
		}
		
		frameElement.dialog.onCancel = function () {
			frameElement.dialog.close();
		}
		
		//初始化数据
		function initData(){
			var _id = $("#aid").val();
	    	if(!_id)return;
	    	var _url = '<%=path%>/auccar/aucsplusr/getById.do';
			AjaxUtils.ajaxGet(_url, {
				id : _id
			}, initCallback, true);
		}

		//初始化回调
		function initCallback(msg) {
			if (msg.success == 1) {
				setData(msg.data);//设置数据
			} else {
				UIUtils.alertError(msg.info);
			}
		}

		//设置页面数据
		function setData(data) {
			var form = new liger.get("aucSplUsrForm");
			$("#aucSplUsrId").html(data.id);
			$("#cid").html(data.id);
			$("#splNm").html(data.splNm);
			$("#usrNm").html(data.usrNm);
			$("#splLnkMan").html(data.splLnkMan);
			$("#splTel").html(data.splTel);
			$("#bkAccNm").html(data.bkAccNm);
			$("#bkAccNo").html(data.bkAccNo);
			$("#bkNm").html(data.bkNm);
			$("#bkNo").html(data.bkNo);
			$("#splRem").html(data.splRem);
			if(StringUtils.isEmpty(data.rgnPrCdNm)){
				data["rgnPrCdNm"] = "";
			}
			
			if(StringUtils.isEmpty(data.rgnCyCdNm)){
				data["rgnCyCdNm"] = "";
			}
			
			$("#area").html(data.rgnPrCdNm + "/" + data.rgnCyCdNm);
			if(data.isValid == 1){
				$("#isValidNm").html("启用");
			}else{
				$("#isValidNm").html("禁用");
			}
		};
	</script>
</body>
</html>